package com.example.tian.securityinspection.context;

import com.example.tian.securityinspection.BuildConfig;
import com.example.tian.securityinspection.util.SDCardUtil;

import java.io.File;

/**
 * 用于全局的配置信息
 */
public class AppConfig {

    /**
     * 是否开启debug模式
     */
    public static final boolean DEBUG = BuildConfig.DEBUG;

    /**
     * 服务器baseUrl
     */
    public static final String SERVICE_URL = "";

    /**
     * 连接超时时间
     */
    public static final int CONNECT_TIMEOUT_MILLIS = 15 * 1000; // 15s

    /**
     * 响应超时时间
     */
    public static final int READ_TIMEOUT_MILLIS = 20 * 1000; // 20s

    /**
     * App ID
     */
    public static final String APP_KEY = "android";

    /**
     * App Secret  这个是App注册的相关信息,具体项目要做相应修改
     */
    public static final String APP_SECRET = "";

    public static final String APP_NAME = "security_inspection";

    public static String getAppRootPath() {
        return SDCardUtil.getRootPath() + File.separator + APP_NAME;
    }
}
